﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MediaPlayer
{
    
    public partial class urlWindow : Window
    {
        private string url="";

        public urlWindow()
        {
            InitializeComponent();
        }

        private void cancelButton_Click_1(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void okButton_Click_1(object sender, RoutedEventArgs e)
        {
            if (!urlTextBox.Text.Equals(""))
            {
                url = urlTextBox.Text;
                this.Close();
            }
            else
            {
                MessageBox.Show("Enter valid url !");
            }  
        }

        public string UrlWindowResault
        {
            get { return url; }
        }

    }
}
